package com.zhehekeji.opsys.api.req;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;

/**
 * @ClassName LuckyAnswerReq
 * @Description TODO
 * @author chenweiliu chenwei.liu@163.com
 * @date 2016-11-11   下午3:58:59
 */
@XmlRootElement
public class LuckyAnswerReq implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -6645530009518682850L;
	private String userID;
	private String productCode;
	private String productName;
	private int resolution;
	private int epgPlatformType;
	private String surveyCode;
	private List<AnswerInfo> answerInfos;
	
	public String getUserID() {
		return userID;
	}

	public void setUserID(String userID) {
		this.userID = userID;
	}

	public String getProductCode() {
		return productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public int getResolution() {
		return resolution;
	}

	public void setResolution(int resolution) {
		this.resolution = resolution;
	}

	public int getEpgPlatformType() {
		return epgPlatformType;
	}

	public void setEpgPlatformType(int epgPlatformType) {
		this.epgPlatformType = epgPlatformType;
	}

	public String getSurveyCode() {
		return surveyCode;
	}

	public void setSurveyCode(String surveyCode) {
		this.surveyCode = surveyCode;
	}

	public List<AnswerInfo> getAnswerInfos() {
		return answerInfos;
	}

	public void setAnswerInfos(List<AnswerInfo> answerInfos) {
		this.answerInfos = answerInfos;
	}

	@Override
	public String toString() {
		return "LuckyAnswerReq [userID=" + userID + ", productCode="
				+ productCode + ", productName=" + productName
				+ ", resolution=" + resolution + ", epgPlatformType="
				+ epgPlatformType + ", answerInfos=" + answerInfos + "]";
	}

	public static class AnswerInfo implements Serializable{
		/**
		 * 
		 */
		private static final long serialVersionUID = -6745236458036902025L;
		private long  questionId;
		private String choiceIds;
		private String choiceOrdernos;
		public long getQuestionId() {
			return questionId;
		}
		public void setQuestionId(long questionId) {
			this.questionId = questionId;
		}
		public String getChoiceIds() {
			return choiceIds;
		}
		public void setChoiceIds(String choiceIds) {
			this.choiceIds = choiceIds;
		}
		public String getChoiceOrdernos() {
			return choiceOrdernos;
		}
		public void setChoiceOrdernos(String choiceOrdernos) {
			this.choiceOrdernos = choiceOrdernos;
		}
		@Override
		public String toString() {
			return "AnswerInfo [questionId=" + questionId + ", choiceIds="
					+ choiceIds + ", choiceOrdernos=" + choiceOrdernos + "]";
		}
	}
}

